package com.wuxu.aspectj

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.wuxu.aspectj.kotlin.DebugLog

class MainActivity : AppCompatActivity() {
    companion object {
        const val TAG = "wuxuAspectJ"
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        initView()
        initEvent()

        startActivity(Intent(this,SecondActivity::class.java))
    }
    @com.wuxu.aspectj.java.Log(name="123")
    private fun initEvent() {
        Log.d("MainActivity", "initEvent")
    }

    @DebugLog
    fun initView() {
        Log.d("MainActivity", "initView")
    }
}